源码下载地址:
https://download.virtualbox.org/virtualbox/
当然这个也可以
https://www.virtualbox.org/wiki/Download_Old_Builds
我下载了这个5.2.18
https://download.virtualbox.org/virtualbox/5.2.18/VirtualBox-5.2.18.tar.bz2
linux下的编译文档
https://www.virtualbox.org/wiki/Linux%20build%20instructions
libhal-dev和python-central没找到,就先不安装了
1 | sudo apt-get install gcc g++ bcc iasl xsltproc uuid-dev zlib1g-dev libidl-dev \ |
64位系统还要装一下
1 | sudo apt-get install lib32z1 libc6-dev-i386 lib32gcc1 gcc-multilib \ |
链接共享库
1 | sudo ln -s libX11.so.6 /usr/lib32/libX11.so |
./configure来发现还有东西没装
1 | sudo apt-get install libssl-dev libvpx-dev libopus-dev |
之后就是qt5 not found,上面的qt4费了
1 | Checking for Qt5: |
安装qt5
1 | sudo apt-get install build-essential qtcreator qt5-default libqt5* |
编译的时候有错误
我就发现kmk可以-i忽略错误
1 | kmk BUILD_TYPE=debug -i |
之后就ko了
直接启动即可